package com.googlecode.dgwt.client.dijit.base.selection;

import com.google.gwt.event.shared.HandlerRegistration;
import com.googlecode.dgwt.client.dijit.event.RowDeselectHandler;
import com.googlecode.dgwt.client.dijit.event.RowSelectHandler;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public interface HasSelection {

    /**
     * Gets the selection manager for this component.
     * 
     * @return a {@link Selection}, <code>null</code> is not allowed
     */
    public Selection getSelection();
 
    public HandlerRegistration addRowSelectHandler(RowSelectHandler handler);
    
    public HandlerRegistration addRowDeselectHandler(RowDeselectHandler handler);
    
}


// FIXME adicionar os outros handlers addRowCanSelect**